home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / DialogView.h < prev    next >
C/C++ Source or Header  |  1992-07-02  |  1KB  |  48 lines

  1. #ifndef DialogView_First
  2. #ifdef __GNUG__
  3. //pragma once
  4. #pragma interface
  5. #endif
  6. #define DialogView_First
  7.  
  8. #include "View.h"
  9.  
  10. //---- DialogView --------------------------------------------------------------
  11.  
  12. class DialogView: public View {
  13. protected:
  14.     VObject *dialogRoot;
  15.  
  16. public:
  17.     MetaDef(DialogView);
  18.  
  19.     DialogView(EvtHandler *eh= 0);
  20.     ~DialogView();
  21.  
  22.     void Open(bool mode= TRUE);
  23.     void SetOrigin(Point at);
  24.     void SetExtent(Point e);
  25.     void ExtentChanged(VObject *vop);
  26.     Metric GetMinSize();
  27.     virtual VObject *DoCreateDialog();
  28.     void CalcLayout(bool redraw= TRUE);
  29.     VObject *SetDialog(VObject*, bool redraw= TRUE); // returns old dialogtree
  30.     VObject *GetDialogRoot();
  31.     void Draw(Rectangle);
  32.     VObject *Detect(BoolFun f, void *arg);
  33.  
  34.     //---- event handling
  35.     Command *DispatchEvents(Point lp, Token &t, Clipper*);
  36.  
  37.     virtual void EnableItem(int id, bool b= TRUE);
  38.     void DisableItem(int id)
  39.     { EnableItem(id, FALSE); }
  40.     VObject *FindItem(int id);
  41.  
  42.     //---- keyboard focus
  43.     void CollectParts(class Collection *);
  44. };
  45.  
  46. #endif
  47.  
  48.